package com.legoo.studaychineseonline.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import com.legoo.studaychineseonline.R;
import com.legoo.studaychineseonline.adapter.CollectionActivityAdapter;
import com.legoo.studaychineseonline.adapter.YiGouActivityAdapter;
import com.legoo.studaychineseonline.base.BaseActivity;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
/**
 * 收藏课程
 * */
public class CollectionActivity extends BaseActivity {
    @BindView(R.id.tv_title_left)
    TextView tvTitleLeft;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_title_right)
    TextView tvTitleRight;
    @BindView(R.id.rv_activity)
    RecyclerView rvActivity;
    @BindView(R.id.sr_refresh)
    SmartRefreshLayout srRefresh;
    List<String> list = new ArrayList<>();
    @Override
    protected void myOnCreate(@Nullable Bundle savedInstanceState) {
        ButterKnife.bind(this);
        tvTitleRight.setVisibility(View.INVISIBLE);
        tvTitleLeft.setBackgroundResource(R.mipmap.img_fanhui);
        tvTitle.setText("收藏课程");

        list.add("0");
        list.add("0");
        list.add("0");
        rvActivity.setLayoutManager(new LinearLayoutManager(context,LinearLayoutManager.VERTICAL,false));
        rvActivity.setAdapter(new CollectionActivityAdapter(R.layout.item_activity,list));
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void resolveBundle(Bundle bundle) {

    }

    @Override
    protected int myLayoutId() {
        return R.layout.activity_shoucangkecheng;
    }



    @OnClick({R.id.tv_title_left, R.id.tv_title})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_title_left:
                finish();
                break;
            case R.id.tv_title:
                break;
        }
    }
}
